<template>
    <div class="index">
		        <div class="index" v-for="(item, index) in banners" :key="index" align="center" >
    				<img :src="item" style="margin-top:90px">
				</div>
				<div style="margin-bottom:70px">
				    				<h2>{{data6[0].school_name}}</h2>
				 <p>办学类型：大学&nbsp;&nbsp;&nbsp;学历层次：本科&nbsp;&nbsp;&nbsp;院校隶属：教育部&nbsp;&nbsp;&nbsp;建校时间：1898年</p>
				 </div>    
		     <hr style='margin-top:10px'>
		     <div class="operation" style='margin-top:30px'align="left">
				 <p>{{data6[0].school_info}}</p>
		    </div>
		     <hr style='margin-top:10px'>
    </div>

</template>
<script>
    /* eslint-disable space-before-function-paren */
    import qinghua from '../../../images/timg.jpg'
    import gongda from '../../../images/hagongda.jpg'
    import haxueyuan from '../../../images/haerbinxueyuan.jpg'
    import haxinxi from '../../../images/haerbinxinxi.jpg'
    import heijianzhu from '../../../images/heijianzhu.jpg'
    import {exam} from "../../../../api/index.js"
    

   export default {
        data () { 
            return {
            id:"",
            banners: [
 ],
            	data6:[
					{school_name:"",
					school_info:""}
            	]
            }
        },
        methods: {
    } ,mounted() {
    					var _this = this;
			            exam.introdectFindByid_post({data:{id:this.$route.params.id}}).then((res) => {
					                 for(var i in res.data.data.collectinfo){
					                     this.data6 = [];
					                  _this.data6.push(res.data.data.collectinfo[i]) ;
					                  _this.banners.push("../src/images/"+res.data.data.collectinfo[i].school_logo);
					                 } 
			            }, function (error) {
			                console.log(error); 
			            });
    					
    	}
       
}
</script>

